package com.tomtop.core.dorequest;

import java.lang.reflect.Type;
import java.util.List;
import java.util.Map;

import org.springframework.http.HttpMethod;

/**
 * 该注解如果加在类上，类中所有加有该注解的方法，都会继承该注解的值
 *
 */

class DoHttpRequestData {
	private boolean from=false;
	private boolean manuallyprocessed=true;
	private boolean cache=false;
	private String hostKey;
	private String path="/";
	private String scheme="http";
	private String version;
	private String methodKey;
	private HttpMethod method=HttpMethod.GET;
	private int cachetimeout=5000;
	private Type returnType;
	private Map<Integer,Map<String,List<Integer>>> variable;
	
	public String getMethodKey() {
		return methodKey;
	}
	public void setMethodKey(String methodKey) {
		this.methodKey = methodKey;
	}
	public Type getReturnType() {
		return returnType;
	}
	public void setReturnType(Type returnType) {
		this.returnType = returnType;
	} 
	public Map<Integer, Map<String, List<Integer>>> getVariable() {
		return variable;
	}
	public void setVariable(Map<Integer, Map<String, List<Integer>>> variable) {
		this.variable = variable;
	}
	public boolean isFrom() {
		return from;
	}
	public void setFrom(boolean from) {
		this.from = from;
	}
	public boolean isManuallyprocessed() {
		return manuallyprocessed;
	}
	public void setManuallyprocessed(boolean manuallyprocessed) {
		this.manuallyprocessed = manuallyprocessed;
	}
	public boolean isCache() {
		return cache;
	}
	public void setCache(boolean cache) {
		this.cache = cache;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public String getScheme() {
		return scheme;
	}
	public void setScheme(String scheme) {
		this.scheme = scheme;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public HttpMethod getMethod() {
		return method;
	}
	public void setMethod(HttpMethod method) {
		this.method = method;
	}
	public int getCachetimeout() {
		return cachetimeout;
	}
	public void setCachetimeout(int cachetimeout) {
		this.cachetimeout = cachetimeout;
	}
	public String getHostKey() {
		return hostKey;
	}
	public void setHostKey(String hostKey) {
		this.hostKey = hostKey;
	}
}
